import { setStorage } from '../utils/storange.js'
export default {
  state () {
    return {
      refreshToken: '',
      token: ''
    }
  },
  mutations: {
    changeRefreshToken (state, refreshToken) {
      state.refresh_token = refreshToken
      setStorage('refresh_token', refreshToken)
    },
    changetoken (state, token) {
      state.token = token
      setStorage('token', token)
    }
  }
}

